<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<base href="<%=basePath%>">
	<title>hr-m-s</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="css/style.css" >
</head>
<body>
<table width="800" border="1" cellpadding="0" cellspacing="0" align="center">
  <tr>
    <th colspan="6" scope="col">部门信息列表</th>
  </tr>
  <tr>
    <td colspan="5">&nbsp;</td>
    <td><a href="hrms/zzjg/department_add.jsp">新增</a></td>
  </tr>
  <tr>
    <td width="100">编号</td>
    <td width="200">部门名称</td>
    <td width="300">创建时间</td>
    <td width="100">启用</td>
    <td width="50">编辑</td>
    <td width="50">删除</td>
  </tr>
  <s:iterator value="departmentList" var="list">
  	<tr>
		<td><s:property value="departmentID"/></td>
	    <td><a href='position!showList?departmentID=<s:property value="departmentID"/>'><s:property value="departmentName"/></a></td>
	    <td><s:date format="yyyy-MM-dd HH:mm:ss" name="departmentCreateDate"/></td>
	    <td>
			<s:if test="departmentDisplayKey == 1">是</s:if>
			<s:else>否</s:else>
		</td>
	    <td><a href='department!update?mode=getDepartmentPO&departmentID=<s:property value="departmentID"/>'>编辑</a></td>
	    <td><a href='department!delete?departmentID=<s:property value="departmentID"/>'>删除</a></td>
  	</tr>
  </s:iterator>
</table>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div id="showMessage" align="center"><s:property value="messageTips" /></div>
</body>
</html>
